package cn.gjculture.shopping.api.service;

import cn.gjculture.shopping.api.entity.UnifyParam;
import cn.gjculture.shopping.api.entity.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface OrderService {
    int save(Order order, Return<InterfaceParam> ret);


    int insertOilBuy(Order order, Return<InterfaceParam> ret);


    int insertOilCash(Order order, String customerId,String customerName, String phone, String cardId, Return<InterfaceParam> ret);

    int refund(Order order,Return ret);

    int saveHotel(Order order, Return<InterfaceParam> ret);

    List<Order> queryByCustomerId(String customerId);

    String unifyOrder(UnifyParam unifyParam);

    List<Order> query(OrderParams params);

    int updateStatus(Order order);

    int update(Order order);
    RefundFlow queryRefundFlow(String orderId);

    int handleRefund(RefundFlow refundFlow, Return ret);

    List<Order> queryOilBuy();

    List<Order> queryOil();

    void export(OrderParams order, HttpServletResponse response) throws IOException;
}
